<?php

//var_dump($reporte['series'][0]);
//die();
$this->Widget('ext.highcharts.HighchartsWidget', array(
    'scripts' => array(
        'modules/exporting', // adds Exporting button/menu to chart
    ),
    'options' => array(
        'colors' => ['#EBAB17', '#F9FFBF', '#48DB6B', '#FFB0F2', '#373CDB', '#24CBE5', '#FF9655', '#FFF263', '#6AF9C4'],
        'chart' => array(
            'height' => '500',
            'backgroundColor' => array(
                'linearGradient' => array('x1' => 0, 'y1' => 0, 'x2' => 1, 'y2' => 1),
                'stops' => array(array(
                        0, 'rgb(255, 255, 255)'),
                    array(1, 'rgb(240, 240, 255)')
                )),
            'zoomType' => 'x',
            'type' => 'area',
            'spacingRight' => 20,
//            'type' => 'l',
        ),
        'borderWidth' => 2,
        'plotBackgroundColor' => 'rgba(255, 255, 255,.99)',
        'plotShadow' => true,
        'plotBorderWidth' => 1,
        'title' => array('text' => 'Bmi para la edad '),
        'credits' => array(
            'enabled' => false,
        ),
//        'subtitle' => array(
//            'text' => 'ninio',
//        ),
        'xAxis' => array(
//            'minorTickInterval' => 'auto',

            'title' => array('text' => 'Edad meses cumplidos'),
            'gridLineWidth' => 1,
            'lineColor' => '#000',
            'tickColor' => '#000',
            'allowDecimals' => false,
            'categories' => $reporte['xAxis']['categories'],
            'labels' => array(
                'rotation' => -45
            ),
        ),
        'plotOptions' => array(
            'series' => array(
                'lineColor' => '#303030',
            )),
        'tooltip' => array(
            'crosshairs' => true,
            'shared' => true,
            'lineColor' => '#000000',
//		        valueSuffix: '°C'
        ),
        'yAxis' => array(
            'min'=> +10,
//            'series'=> array(
//                 'lineColor'=>'#303030',
//             ),
            'minorTickInterval' => 'auto',
            'title' => array('text' => 'Bmi (kg/m2)'),
            'lineColor' => '#000',
            'lineWidth' => 1,
            'tickWidth' => 1,
            'tickColor' => '#000',
        ),
        'series' => $reporte['series']
    ),
));
?>